NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

Reference | textpath()


Syntax
textpath(txt, x, y, width=None, height=1000000)

DescriptionWorks exactly like the text() command, except it returns a path that can be used with drawpath(), beginclip() and endclip() instead of drawing text to the screen.
Returnsa path containing the given text as outlines


Example
path = textpath("A shrubbery!", 10, 40)
beginclip(path)
image("shrubbery.jpg", 0, 0)
endclip()